package com.yomahub.liteflow.example.controller;

import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.entity.data.DefaultSlot;
import com.yomahub.liteflow.entity.data.LiteflowResponse;
import com.yomahub.liteflow.flow.FlowBus;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @time: 2021年12月01日 17:42
 * @author: junyi Xu
 */
@RestController
@Slf4j
@RequestMapping("test")
public class MyController {

    @Resource
    private FlowExecutor flowExecutor;


    @GetMapping("testRetry")
    public void testRetry() {
        LiteflowResponse<DefaultSlot> response = flowExecutor.execute2Resp("mainChain", "request");


    }
}
